(function(e){"use strict";e.URL=e.URL||e.webkitURL;if(e.Blob&&e.URL){try{new Blob;return}catch(t){}}var n=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var t=function(e){return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1]},n=function U(){this.data=[]},i=function B(e,t,n){this.data=e;this.size=e.length;this.type=t;this.encoding=n},o=n.prototype,r=i.prototype,a=e.FileReaderSync,c=function(e){this.code=this[this.name=e]},l=("NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR "+"NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR").split(" "),s=l.length,f=e.URL||e.webkitURL||e,u=f.createObjectURL,d=f.revokeObjectURL,R=f,p=e.btoa,h=e.atob,b=e.ArrayBuffer,g=e.Uint8Array,w=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;i.fake=r.fake=true;while(s--){c.prototype[l[s]]=s+1}if(!f.createObjectURL){R=e.URL=function(e){var t=document.createElementNS("http://www.w3.org/1999/xhtml","a"),n;t.href=e;if(!("origin"in t)){if(t.protocol.toLowerCase()==="data:"){t.origin=null}else{n=e.match(w);t.origin=n&&n[1]}}return t}}R.createObjectURL=function(e){var t=e.type,n;if(t===null){t="application/octet-stream"}if(e instanceof i){n="data:"+t;if(e.encoding==="base64"){return n+";base64,"+e.data}else if(e.encoding==="URI"){return n+","+decodeURIComponent(e.data)}if(p){return n+";base64,"+p(e.data)}else{return n+","+encodeURIComponent(e.data)}}else if(u){return u.call(f,e)}};R.revokeObjectURL=function(e){if(e.substring(0,5)!=="data:"&&d){d.call(f,e)}};o.append=function(e){var n=this.data;if(g&&(e instanceof b||e instanceof g)){var o="",r=new g(e),l=0,s=r.length;for(;l<s;l++){o+=String.fromCharCode(r[l])}n.push(o)}else if(t(e)==="Blob"||t(e)==="File"){if(a){var f=new a;n.push(f.readAsBinaryString(e))}else{throw new c("NOT_READABLE_ERR")}}else if(e instanceof i){if(e.encoding==="base64"&&h){n.push(h(e.data))}else if(e.encoding==="URI"){n.push(decodeURIComponent(e.data))}else if(e.encoding==="raw"){n.push(e.data)}}else{if(typeof e!=="string"){e+=""}n.push(unescape(encodeURIComponent(e)))}};o.getBlob=function(e){if(!arguments.length){e=null}return new i(this.data.join(""),e,"raw")};o.toString=function(){return"[object BlobBuilder]"};r.slice=function(e,t,n){var o=arguments.length;if(o<3){n=null}return new i(this.data.slice(e,o>1?t:this.data.length),n,this.encoding)};r.toString=function(){return"[object Blob]"};r.close=function(){this.size=0;delete this.data};return n}(e);e.Blob=function(e,t){var i=t?t.type||"":"";var o=new n;if(e){for(var r=0,a=e.length;r<a;r++){if(Uint8Array&&e[r]instanceof Uint8Array){o.append(e[r].buffer)}else{o.append(e[r])}}}var c=o.getBlob(i);if(!c.slice&&c.webkitSlice){c.slice=c.webkitSlice}return c};var i=Object.getPrototypeOf||function(e){return e.__proto__};e.Blob.prototype=i(new e.Blob)})(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this.content||this);
//# sourceMappingURL=blob.map.js